﻿@{ var model = new OrderingPlatform.BllService.ProductService.ProductService().GetHots();}
<div id="homeTabs" class="homtabs">
    <ul>
        <li class="current" ref="tab01">餐厅</li>
        <li ref="tab02">餐位</li>
        <li ref="tab03">菜品</li>
    </ul>
</div>
<div class="hometabsValue">
    <div id="tab01">

        @if (model.RestaurantList != null)
        {
            <ul>
                @foreach (var item in model.RestaurantList)
                {
                    <li><a href="@Url.Action("Detail", "Restaurant", new { area = "Products", productId = item.Key })">@item.Value</a></li>
                }
            </ul>
        }
    </div>
    <div id="tab02" style="display: none">
        @if (model.SeatsList != null)
        {
            <ul>
                @foreach (var item in model.SeatsList)
                {
                    <li><a href="@Url.Action("Detail", "Seats", new { area = "Products", productId = item.Key })">@item.Value</a></li>
                }
            </ul>
        }
    </div>
    <div id="tab03" style="display: none">
        @if (model.BillfareList != null)
        {
            <ul>
                @foreach (var item in model.BillfareList)
                {
                    <li><a href="@Url.Action("Detail", "Billfare", new { area = "Products", productId = item.Key })">@item.Value</a></li>
                }
            </ul>
        }
    </div>
</div>
